<!-- 右侧  -->
<div id="page-inner">
    <div class="panel-body">
        <div class="row">
            <div class="col-md-12">
                <h1 class="page-header">
                    水平衡测试 <small>全厂计量水表配备情况表</small>
                </h1>
            </div>
        </div>
        <div class="row">
            <div class="form-group">
                <span class="glyphicon glyphicon-inbox"></span>
                <label style="font-size:20px;font-weight:normal">单位：</label>
                <label style="font-size:20px;font-weight:normal">m³/h</label>
            </div>
        </div>
        	<div id="toolbar" class="btn-group">
            	<button id="btn_add" type="button" class="btn btn-default">
                	<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>新增
            	</button>
            	<button id="btn_edit" type="button" class="btn btn-default">
                	<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>编辑
            	</button>
            	<button id="btn_delete" type="button" class="btn btn-default">
                	<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>删除
            	</button>
            	<button id="btn_return" type="button" class="btn btn-default">
                	<span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span>返回
            	</button>
        	</div>
    	</div>
        <table id="data_table" class="table-striped table-hover"></table>
    </div>
</div>


<!-- 添加 -->
<div class="modal fade" id="new_data" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">添加一项全厂计量水表配备情况表信息</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label>设备名称</label>
                    <select  id="newSelect_id" class="form-control selectpicker" data-live-search="true"
                     title="请选择设备名称" onchange="change($('#newSelect_id option:selected').val(),0)">
					</select>
                </div>
                <div class="form-group">
                    <label>设备编号</label>
                    <select  id="newSelect2_id" class="form-control selectpicker" data-live-search="true"
                             title="请选择设备编号" onchange="change($('#newSelect2_id option:selected').val(),0)">
                    </select>
                </div>
                <div class="form-group">
                    <label>所在位置</label>
                    <input class="form-control" id="newLocation" placeholder="必填" name="new">
                </div>
                <div class="form-group">
                    <label>计量范围</label>
                    <input class="form-control" id="newRange" placeholder="必填"  name="new">
                </div>
                <div class="form-group">
                    <label>水表型号</label>
                    <input class="form-control" id="newType" placeholder="必填"  name="new">
                </div>
                <div class="form-group">
                    <label>水表精度</label>
                    <input class="form-control" id="newAccuracy" placeholder="必填"  name="new">
                </div>
                <div class="form-group">
                    <label>备注</label>
                    <input class="form-control" id="newNote" placeholder="选填"  name="new">
                </div>
                <!-- <div class="form-group">
                    <label>评估日期</label>
                    <input class="form-control" placeholder="" id="newCreatedAt" type="text" value="2018-08-08"  >
                </div> -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="new_data_submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

<!-- 编辑 -->
<div class="modal fade" id="edit_data" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">编辑一项全厂计量水表配备情况表信息</h4>
            </div>
            <div class="modal-body" >
                <div class="form-group">
                    <label>水表名称</label>
                    <select  id="editSelect_id" class="form-control selectpicker" data-live-search="true"
                     title="请选择水表名称" onchange="change($('#editSelect_id option:selected').val(),1)">
					</select>
                </div>
                <div class="form-group">
                    <label>设备编号</label>
                    <select  id="editSelect2_id" class="form-control selectpicker" data-live-search="true"
                             title="请选择设备编号" onchange="change($('#newSelect2_id option:selected').val(),0)">
                    </select>
                </div>
                <div class="form-group">
                    <label>所在位置</label>
                    <input class="form-control" id="editLocation" placeholder="必填" name="edit">
                </div>
                <div class="form-group">
                    <label>计量范围</label>
                    <input class="form-control" id="editRange" placeholder="必填" name="edit">
                </div>
                <div class="form-group">
                    <label>水表型号</label>
                    <input class="form-control" id="editType" placeholder="必填" name="edit">
                </div>
                <div class="form-group">
                    <label>水表精度</label>
                    <input class="form-control" id="editAccuracy" placeholder="必填" name="edit">
                </div>
                <div class="form-group">
                    <label>备注</label>
                    <input class="form-control" id="editNote" placeholder="必填" name="edit">
                </div>
                <!-- <div class="form-group">
                    <label>评估日期</label>
                    <input class="form-control" placeholder="" id="newCreatedAt" type="text" value="2018-08-08"  >
                </div> -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="edit_data_submit">提交</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>


<script src="pages/js/entity_eva_water_sensor_info.js"></script>